/*
 * @Author: liu.lin liu.lin@hzleaper.com
 * @Date: 2023-11-20 10:19:34
 * @LastEditors: liu.lin liu.lin@hzleaper.com
 * @LastEditTime: 2023-11-23 10:53:02
 * @FilePath: \aoi_link_frontend\src\page\fpy-analyse\index.type.tsx
 * @Description:
 */
export enum SearchType {
  time = 'time',
  lotId = 'lotId'
}

export interface FlawFilterType {
  piantiehou: {
    上反?: Array<number>; // 全选不传上反key
    下反?: Array<number>; // 全选不传key
    透射?: Array<number>; // 全选不传key
  };
  pol: {
    KE透射?: Array<number>; //全选不传key
  };
  not_appoint: boolean;
}

export interface SearchParamsType {
  searchType: SearchType;
  startTime?: number;
  endTime?: number;
  lotId?: string;
  pageSize: number;
  pageNum: number;
  size?: Array<number>; // 全选不传size， 传给后端不能是空数组，至少有一个值
  grade?: Array<string>; // 全选不传grade，  传给后端不能是空数组，至少有一个值
  flawFilter: FlawFilterType;
}

export interface TableDataType {
  result: any[];
  total: number;
}

export interface OptionsType {
  label: string | number;
  value: string | number;
}

export interface TreeDataType {
  [x: string]: any;
  stationWithFlaw: any;
}

export interface CascaderOption {
  value: string | number;
  label: string;
  children?: CascaderOption[];
}

export enum SearchKeyType {
  check_count = 'check_count',
  ok_count = 'ok_count',
  fin_ok_count = 'fin_ok_count',
  miss_count = 'miss_count',
  over_count = 'over_count'
}

export enum DetailSearchType {
  detail = 'detail',
  summury = 'summury'
}
